#!/bin/sh

for i in $PLIBDIRS # $PLIBDIRS is exported in 2createpackages
do
	[ -d $i ] || continue
	#libegl1-mesa in trusty has shared objects under a sub-directory
	if [ -d ${i}/mesa-egl ];then
		mv -v ${i}/mesa-egl/lib*.so* ${i}/
		rm -rf ${i}/mesa-egl
	fi
done
